MOVING_BIGFOOTBAR = nil
BigFootBar001001010100001111100000 = nil
if (GetLocale() == "zhCN") then
    BIGFOOTBAR_WINDOWS = "窗口操作"
    BIGFOOTBAR_UNLOCK_BAR = "解锁动作条"
    BIGFOOTBAR_LOCK_BAR = "锁定动作条"
    BIGFOOTBAR_MINIMIZE_BAR = "最小化动作条"
    BIGFOOTBAR_RESTORE_BAR = "恢复动作条"
    BIGFOOTBAR_RESIZE = "缩放动作条"
    BIGFOOTBAR_CLOSE_BAR = "关闭动作条"
    BIGFOOTBAR_ARRANGEMENT = "排列方式"
    BIGFOOTBAR_ARRANGEMENT_HORIZONTAL = "横向排列"
    BIGFOOTBAR_ARRANGEMENT_VERTICAL = "纵向排列"
    BIGFOOTBAR_ARRANGEMENT_FUNNY = "趣味排列"
    BIGFOOTBAR_BUTTONS = "按钮操作"
    BIGFOOTBAR_INCREASE_BUTTON = "增加按钮"
    BIGFOOTBAR_DECREASE_BUTTON = "减少按钮"
    BIGFOOTBAR_MESSAGE_ERROR_NO_ENOUGH_ID = "没有可分配的动作按钮ID。"
    BIGFOOTBAR_CLOSE_BAR_INFO =
        "关闭动作条将使你所有的动作按钮信息失去，你真的想关闭动作按钮吗？"
    BIGFOOTBAR_TITLE = "大脚动作条"
    BIGFOOTBAR_ENABLE = "开启大脚动作条"
    BIGFOOTBAR_RESET = "重置位置"
    BIGFOOTBAR_HIDE_TAB = "隐藏动作条标题头"
    BIGFOOTBAR_OTHERS = "其它操作"
    BIGFOOTBAR_CREATE_NEW_BAR = "创建新的动作条"
    BIGFOOTBAR_TAB_HELP_TEXT = "按住鼠标左键可对动作条进行拖动,\n单击鼠标右键弹出操作菜单。"
elseif (GetLocale() == "zhTW") then
    BIGFOOTBAR_WINDOWS = "視窗"
    BIGFOOTBAR_UNLOCK_BAR = "解鎖快捷列"
    BIGFOOTBAR_LOCK_BAR = "鎖定快捷列"
    BIGFOOTBAR_MINIMIZE_BAR = "最小化快捷列"
    BIGFOOTBAR_RESTORE_BAR = "恢復快捷列"
    BIGFOOTBAR_CLOSE_BAR = "關閉快捷列"
    BIGFOOTBAR_ARRANGEMENT = "排列方式"
    BIGFOOTBAR_ARRANGEMENT_HORIZONTAL = "橫向排列"
    BIGFOOTBAR_ARRANGEMENT_VERTICAL = "縱向排列"
    BIGFOOTBAR_ARRANGEMENT_FUNNY = "趣味排列"
    BIGFOOTBAR_BUTTONS = "按鈕"
    BIGFOOTBAR_INCREASE_BUTTON = "增加按鈕"
    BIGFOOTBAR_DECREASE_BUTTON = "減少按鈕"
    BIGFOOTBAR_OTHERS = "其它操作"
    BIGFOOTBAR_CREATE_NEW_BAR = "创建新的动作条"
    BIGFOOTBAR_MESSAGE_ERROR_NO_ENOUGH_ID = "沒有可分配的動作按鈕ID。"
    BIGFOOTBAR_CLOSE_BAR_INFO =
        "關閉快捷列將失去你所有的動作按鈕訊息，你確定要關閉動作按鈕嗎？"
    BIGFOOTBAR_TITLE = "大腳快捷列"
    BIGFOOTBAR_ENABLE = "開啟大腳快捷列"
    BIGFOOTBAR_RESET = "重置位置"
    BIGFOOTBAR_HIDE_TAB = "隱藏快捷列標題"
    BIGFOOTBAR_TAB_HELP_TEXT = "按住滑鼠左鍵可對快捷列進行拖曳,\n點選滑鼠右鍵彈出操作選單。"
else
    BIGFOOTBAR_WINDOWS = "Window"
    BIGFOOTBAR_UNLOCK_BAR = "Unlock"
    BIGFOOTBAR_LOCK_BAR = "Lock"
    BIGFOOTBAR_MINIMIZE_BAR = "Minimize"
    BIGFOOTBAR_RESTORE_BAR = "Restore"
    BIGFOOTBAR_CLOSE_BAR = "Close"
    BIGFOOTBAR_ARRANGEMENT = "Arrangement"
    BIGFOOTBAR_ARRANGEMENT_HORIZONTAL = "Horizontal arrangement"
    BIGFOOTBAR_ARRANGEMENT_VERTICAL = "Vertical arragnement"
    BIGFOOTBAR_ARRANGEMENT_FUNNY = "Funny arrangement"
    BIGFOOTBAR_BUTTONS = "Button"
    BIGFOOTBAR_INCREASE_BUTTON = "Increase button"
    BIGFOOTBAR_DECREASE_BUTTON = "Decrease button"
    BIGFOOTBAR_OTHERS = "Other"
    BIGFOOTBAR_CREATE_NEW_BAR = "Create new bar"
    BIGFOOTBAR_MESSAGE_ERROR_NO_ENOUGH_ID = "No more button could be arragned."
    BIGFOOTBAR_CLOSE_BAR_INFO = "All button information you want to close will be lost, do you really want to do?"
    BIGFOOTBAR_TITLE = "BigFoot Bar"
    BIGFOOTBAR_ENABLE = "Enable BigFoot Bar"
    BIGFOOTBAR_RESET = "Reset position"
    BIGFOOTBAR_HIDE_TAB = "Hide Bar Header"
    BIGFOOTBAR_TAB_HELP_TEXT = "Hold mouse left button to move bar,\nRight click to popup menu."
end
BigFootBar01101000000010011101001011000110 = 12
BigFootBar11100100100100110010101 = 1
BigFootBar01100100111101100011000001000 = 10
BigFootBar10110011101110000001000 = 124
BigFootBar0011101101110011011010011011000 = 10
BigFootBar1100101110011000000111010101110011 = nil
BigFootBar1100101100110101000111000000011011001 = 2
BigFootBar1000011001010101110110110 = 0.5
BigFootBar_Info = {}
BigFootBar101111000000110111111011101110 = nil
StaticPopupDialogs["CLOSE_BAR"] = {
    text = BIGFOOTBAR_CLOSE_BAR_INFO,
    button1 = TEXT(YES),
    button2 = TEXT(NO),
    OnAccept = function()
        BigFootBar00111001110001111101111101101000()
    end,
    OnCancel = function(BigFootBar11111101100011110110101)
    end,
    showAlert = 1,
    timeout = 0
}

local BigFootBar_BScale = BLibrary:CreateInstance("BScale");

SLASH_BIGFOOTBAR1, SLASH_BIGFOOTBAR2 = "/bigfootbar", '/bfb'
SlashCmdList["BIGFOOTBAR"] = function(msg)
    local function p(msg)
        DEFAULT_CHAT_FRAME:AddMessage(msg)
    end

    if (msg == "" or msg == nil) then
        p("  大脚动作条")
        p("  /bigfootbar show 显示")
        p("  /bigfootbar hide 隐藏")
        p("  /bigfootbar hidetab 0-1  0 显示 1 隐藏动作条标题头")
        p("  /bigfootbar reset 重置")
        return
    end

    local cmd = gsub(msg, "^%s*(%a*)%s*(.*)%s*$", "%1");
    local param = gsub(msg, "^%s*(%a*)%s*([%w %p]*)%s*$", "%2");

    if cmd == "show" then
        BigFootBar100011000001100101000011001101100000010(1)
    elseif cmd == 'hide' then
        BigFootBar100011000001100101000011001101100000010(0)
    elseif cmd == "hidetab" then
        BigFootBarHideTab(tonumber(param))
    elseif cmd == "reset" then
        BigFootBar00000101110011001100011010100000()
    end
end

function BigFootBar_OnLoad(this)
    this:RegisterEvent("ADDON_LOADED");
end

function BigFootBar_OnEvent(event)
    if event == "ADDON_LOADED" and arg1 == "BigFootBar" then
        BigFootBar100011000001100101000011001101100000010(BigFootBar_Info.BFB_SHOW)
        BigFootBarHideTab(BigFootBar_Info.BFB_HIDE_TAB)
    end
end

function BigFootBar100011000001100101000011001101100000010(BigFootBar00110100100010001111001000001001110)
    if (BigFootBar00110100100010001111001000001001110 == 1) then
        if (not BigFootBar101111000000110111111011101110) then
            if (not BigFootBar1100101110011000000111010101110011) then
                BigFootBar0111000100101100111111101011010111101()
            end
            BigFootBar10011000001111111110001100()
            BigFootBar101111000000110111111011101110 = 1
            BigFootBar_Info.BFB_SHOW = 1
        end
    else
        if (BigFootBar101111000000110111111011101110) then
            for BigFootBar000010111101101110000100110001010010 = 1, BigFootBar0011101101110011011010011011000, 1 do
                local BigFootBar0110100000011011100011000100 =
                    getglobal("BigFootBarFrame" .. BigFootBar000010111101101110000100110001010010)
                if (BigFootBar0110100000011011100011000100) then
                    BigFootBar00111001110001111101111101101000(BigFootBar0110100000011011100011000100)
                end
                BigFootBar011110001111010010001100100()
                BigFootBar100101001001101011000001()
            end
            BigFootBar101111000000110111111011101110 = nil
            BigFootBar_Info.BFB_SHOW = 0
        end
    end
end

function BigFootBarHideTab(hide)
    if hide == 1 then
        local __index
        for __index = 1, BigFootBar0011101101110011011010011011000, 1 do
            local BigFootBar001101101111001110110111101100100000 = getglobal("BigFootBarFrame" .. __index .. "Tab")
            if (BigFootBar001101101111001110110111101100100000) then
                BigFootBar001101101111001110110111101100100000:Hide()
                BigFootBar_Info.BFB_HIDE_TAB = 1
            end
        end
    else
        for __index = 1, BigFootBar0011101101110011011010011011000, 1 do
            local BigFootBar001101101111001110110111101100100000 = getglobal("BigFootBarFrame" .. __index .. "Tab")
            if (BigFootBar001101101111001110110111101100100000) then
                BigFootBar001101101111001110110111101100100000:Show()
                BigFootBar_Info.BFB_HIDE_TAB = 0
            end
        end
    end
end

function BigFootBarFrame_OnLoad()
    this:SetClampedToScreen(true)
end

function BigFootBar0011110010011010110001101()
    BigFootBar11101101001111011000110001000000101100 = {}
    BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_WINDOWS
    BigFootBar11101101001111011000110001000000101100.isTitle = 1
    BigFootBar11101101001111011000110001000000101100.notCheckable = 1
    UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
    BigFootBar11101101001111011000110001000000101100 = {}
    local BigFootBar0110100000011011100011000100 = BigFootBar01100001111001001011110001101010()
    if (BigFootBar0110100000011011100011000100 and BigFootBar0110100000011011100011000100.isLocked) then
        BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_UNLOCK_BAR
    else
        BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_LOCK_BAR
    end
    BigFootBar11101101001111011000110001000000101100.func = BigFootBar0011001110000001000000000011101000101
    UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
    if (BigFootBar0110100000011011100011000100 and BigFootBar0110100000011011100011000100.minimized) then
        BigFootBar11101101001111011000110001000000101100 = {}
        BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_RESTORE_BAR
        BigFootBar11101101001111011000110001000000101100.func = BigFootBar1110000001000010010101000101
        UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
    else
        BigFootBar11101101001111011000110001000000101100 = {}
        BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_MINIMIZE_BAR
        BigFootBar11101101001111011000110001000000101100.func = BigFootBar1001000010111111010110000101000000111
        UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
    end
    BigFootBar11101101001111011000110001000000101100 = {};
    BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_RESIZE;
    BigFootBar11101101001111011000110001000000101100.func = BigFootBar000010011000111111101011010000010001111;
    UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100);
    if (BigFootBar1010000001000110111101010111110() > 1) then
        BigFootBar11101101001111011000110001000000101100 = {}
        BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_CLOSE_BAR
        BigFootBar11101101001111011000110001000000101100.func = function()
            StaticPopup_Show("CLOSE_BAR")
        end
        UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
    end
    if (BigFootBar0110100000011011100011000100 and not BigFootBar0110100000011011100011000100.minimized) then
        BigFootBar11101101001111011000110001000000101100 = {}
        BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_ARRANGEMENT
        BigFootBar11101101001111011000110001000000101100.isTitle = 1
        BigFootBar11101101001111011000110001000000101100.notCheckable = 1
        UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
        if (BigFootBar01100001111001001011110001101010() and BigFootBar01100001111001001011110001101010().arrangement ~=
            "horizontal") then
            BigFootBar11101101001111011000110001000000101100 = {}
            BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_ARRANGEMENT_HORIZONTAL
            BigFootBar11101101001111011000110001000000101100.func = BigFootBar000011011110000100111110111111111
            UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
        end
        if (BigFootBar01100001111001001011110001101010() and BigFootBar01100001111001001011110001101010().arrangement ~=
            "vertical") then
            BigFootBar11101101001111011000110001000000101100 = {}
            BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_ARRANGEMENT_VERTICAL
            BigFootBar11101101001111011000110001000000101100.func = BigFootBar01000111100101100000011101111100010101
            UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
        end
        if (BigFootBar01100001111001001011110001101010() and BigFootBar01100001111001001011110001101010().arrangement ~=
            "funny") then
            BigFootBar11101101001111011000110001000000101100 = {}
            BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_ARRANGEMENT_FUNNY
            BigFootBar11101101001111011000110001000000101100.func = BigFootBar10001101010001101001011100010001
            UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
        end
        BigFootBar11101101001111011000110001000000101100 = {}
        BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_BUTTONS
        BigFootBar11101101001111011000110001000000101100.isTitle = 1
        BigFootBar11101101001111011000110001000000101100.notCheckable = 1
        UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
        if (BigFootBar00110111111010111110000()) then
            BigFootBar11101101001111011000110001000000101100 = {}
            BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_INCREASE_BUTTON
            BigFootBar11101101001111011000110001000000101100.func = BigFootBar001000110001100000110110000110
            BigFootBar11101101001111011000110001000000101100.disabled = 1
            if (BigFootBar01100001111001001011110001101010() and BigFootBar000100010001011010110110101() <
                BigFootBar01101000000010011101001011000110) then
                BigFootBar11101101001111011000110001000000101100.disabled = nil
            end
            UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
        end
        BigFootBar11101101001111011000110001000000101100 = {}
        BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_DECREASE_BUTTON
        BigFootBar11101101001111011000110001000000101100.func = BigFootBar000111000101111100110001000111111
        BigFootBar11101101001111011000110001000000101100.disabled = 1
        if (BigFootBar01100001111001001011110001101010() and BigFootBar000100010001011010110110101() >
            BigFootBar11100100100100110010101) then
            BigFootBar11101101001111011000110001000000101100.disabled = nil
        end
        UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
    end
    if (BigFootBar00110111111010111110000()) then
        BigFootBar11101101001111011000110001000000101100 = {}
        BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_OTHERS
        BigFootBar11101101001111011000110001000000101100.isTitle = 1
        BigFootBar11101101001111011000110001000000101100.notCheckable = 1
        UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
        BigFootBar11101101001111011000110001000000101100 = {}
        BigFootBar11101101001111011000110001000000101100.text = BIGFOOTBAR_CREATE_NEW_BAR
        BigFootBar11101101001111011000110001000000101100.func = BigFootBar111000011011100101101001101
        if (BigFootBar1010000001000110111101010111110() >= BigFootBar0011101101110011011010011011000) then
            BigFootBar11101101001111011000110001000000101100.disabled = 1
        end
        UIDropDownMenu_AddButton(BigFootBar11101101001111011000110001000000101100)
    end
end
function BigFootBar0011001110000001000000000011101000101()
    local BigFootBar111000110010011101100011101100 = BigFootBar01100001111001001011110001101010()
    if (BigFootBar111000110010011101100011101100) then
        if (BigFootBar111000110010011101100011101100.isLocked) then
            BigFootBar111000110010011101100011101100.isLocked = nil
        else
            BigFootBar111000110010011101100011101100.isLocked = 1
        end
        BigFootBar011110011011111101011010(BigFootBar111000110010011101100011101100)
    end
end
function BigFootBar01100001111001001011110001101010()
    local BigFootBar111000110010011101100011101100 = getglobal("BigFootBarFrame" ..
                                                                   UIDropDownMenu_GetCurrentDropDown():GetParent()
            :GetParent():GetID())
    if (not BigFootBar111000110010011101100011101100) then
        BigFootBar111000110010011101100011101100 = getglobal("BigFootBarFrame" .. this:GetParent():GetID())
    end
    return BigFootBar111000110010011101100011101100
end
function BigFootBarTab_OnClick(BigFootBar11100010101111101100001)
    if (BigFootBar11100010101111101100001 == "RightButton") then
        if (GetScreenWidth() - this:GetRight() < BigFootBar10110011101110000001000 - 40) then
            ToggleDropDownMenu(1, nil, getglobal(this:GetName() .. "DropDown"), this:GetName(),
                10 - BigFootBar10110011101110000001000, 3)
        else
            ToggleDropDownMenu(1, nil, getglobal(this:GetName() .. "DropDown"), this:GetName(), 10, 3)
        end
        PlaySound("UChatScrollButton")
        return
    end
    CloseDropDownMenus()
end
function BigFootBarDropDown_OnLoad()
    UIDropDownMenu_Initialize(this, BigFootBar0011110010011010110001101, "MENU")
    UIDropDownMenu_SetButtonWidth(50)
    UIDropDownMenu_SetWidth(50)
end
function BigFootBar001000110001100000110110000110()
    local BigFootBar111000110010011101100011101100 = BigFootBar01100001111001001011110001101010()
    if (BigFootBar111000110010011101100011101100) then
        for BigFootBar000010111101101110000100110001010010 = 1, BigFootBar01101000000010011101001011000110, 1 do
            local BigFootBar11100010101111101100001 = getglobal(
                BigFootBar111000110010011101100011101100:GetName() .. "ActionButton" ..
                    BigFootBar000010111101101110000100110001010010)
            if (BigFootBar11100010101111101100001 and BigFootBar11100010101111101100001.hide) then
                BigFootBar10000110000101001000111(BigFootBar11100010101111101100001)
                break
            end
        end
        if (BigFootBar111000110010011101100011101100.arrangement == "funny") then
            BigFootBar01100100011100010001110(BigFootBar111000110010011101100011101100, "funny")
        end
    end
end
function BigFootBar000111000101111100110001000111111()
    local BigFootBar111000110010011101100011101100 = BigFootBar01100001111001001011110001101010()
    if (BigFootBar111000110010011101100011101100) then
        for BigFootBar000010111101101110000100110001010010 = BigFootBar01101000000010011101001011000110, 2, -1 do
            local BigFootBar11100010101111101100001 = getglobal(
                BigFootBar111000110010011101100011101100:GetName() .. "ActionButton" ..
                    BigFootBar000010111101101110000100110001010010)
            if (BigFootBar11100010101111101100001 and not BigFootBar11100010101111101100001.hide) then
                BigFootBar10101110111101111110100110(BigFootBar11100010101111101100001)
                break
            end
        end
        if (BigFootBar111000110010011101100011101100.arrangement == "funny") then
            BigFootBar01100100011100010001110(BigFootBar111000110010011101100011101100, "funny")
        end
    end
end
function BigFootBar01100100011100010001110(BigFootBar0110100000011011100011000100,
    BigFootBar1011101111000011001001100111110111)
    if (BigFootBar1011101111000011001001100111110111 == "horizontal") then
        for BigFootBar000010111101101110000100110001010010 = 2, BigFootBar01101000000010011101001011000110, 1 do
            local BigFootBar11100010101111101100001 = getglobal(
                BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" ..
                    BigFootBar000010111101101110000100110001010010)
            local BigFootBar11001010000001110100100010 = BigFootBar0110100000011011100011000100:GetName() ..
                                                             "ActionButton" ..
                                                             (BigFootBar000010111101101110000100110001010010 - 1)
            BigFootBar11100010101111101100001:ClearAllPoints()
            BigFootBar11100010101111101100001:SetPoint("LEFT", BigFootBar11001010000001110100100010, "RIGHT", 6, 0)
        end
        BigFootBar0110100000011011100011000100.arrangement = "horizontal"
    elseif (BigFootBar1011101111000011001001100111110111 == "vertical") then
        for BigFootBar000010111101101110000100110001010010 = 2, BigFootBar01101000000010011101001011000110, 1 do
            local BigFootBar11100010101111101100001 = getglobal(
                BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" ..
                    BigFootBar000010111101101110000100110001010010)
            local BigFootBar11001010000001110100100010 = BigFootBar0110100000011011100011000100:GetName() ..
                                                             "ActionButton" ..
                                                             (BigFootBar000010111101101110000100110001010010 - 1)
            BigFootBar11100010101111101100001:ClearAllPoints()
            BigFootBar11100010101111101100001:SetPoint("TOP", BigFootBar11001010000001110100100010, "BOTTOM", 0, -6)
        end
        BigFootBar0110100000011011100011000100.arrangement = "vertical"
    elseif (BigFootBar1011101111000011001001100111110111 == "funny") then
        local BigFootBar01100110100010010010001 = BigFootBar000100010001011010110110101(
            BigFootBar0110100000011011100011000100)
        BigFootBar1110001010100101001001100111111(BigFootBar0110100000011011100011000100,
            BigFootBar01100110100010010010001)
        BigFootBar0110100000011011100011000100.arrangement = "funny"
    end
    BigFootBar011110011011111101011010(BigFootBar0110100000011011100011000100)
end
function BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, __index,
    BigFootBar01011010111001101100110111010000101, BigFootBar1111000110011001010110101011010011,
    BigFootBar11111110100111100100110101001000000, BigFootBar001110001101111100111010111000,
    BigFootBar100011001111011110111110110011)
    local BigFootBar11100010101111101100001 = getglobal(BigFootBar0110100000011011100011000100:GetName() ..
                                                            "ActionButton" .. __index)
    BigFootBar11100010101111101100001:ClearAllPoints()
    BigFootBar11100010101111101100001:SetPoint(BigFootBar01011010111001101100110111010000101,
        BigFootBar1111000110011001010110101011010011, BigFootBar11111110100111100100110101001000000,
        BigFootBar001110001101111100111010111000, BigFootBar100011001111011110111110110011)
    return BigFootBar11100010101111101100001
end
function BigFootBar1110001010100101001001100111111(BigFootBar0110100000011011100011000100,
    BigFootBar1010011000101000111101110111011)
    if (BigFootBar1010011000101000111101110111011 == 1) then
    elseif (BigFootBar1010011000101000111101110111011 == 2) then
        local BigFootBar111110110001110000011111100000 = getglobal(
            BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" .. 1)
        local BigFootBar101001111111110111001100101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 2, "TOP", BigFootBar111110110001110000011111100000:GetName(),
            "BOTTOM", 0, -6)
    elseif (BigFootBar1010011000101000111101110111011 == 3) then
        local BigFootBar111110110001110000011111100000 = getglobal(
            BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" .. 1)
        local BigFootBar101001111111110111001100101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 2, "TOPRIGHT", BigFootBar111110110001110000011111100000:GetName(),
            "BOTTOM", -3, -6)
        local BigFootBar000000110001001111100011 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 3, "TOPLEFT", BigFootBar111110110001110000011111100000:GetName(),
            "BOTTOM", 3, -6)
    elseif (BigFootBar1010011000101000111101110111011 == 4) then
        local BigFootBar111110110001110000011111100000 = getglobal(
            BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" .. 1)
        local BigFootBar101001111111110111001100101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 2, "TOPRIGHT", BigFootBar111110110001110000011111100000:GetName(),
            "BOTTOM", -3, -6)
        local BigFootBar000000110001001111100011 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 3, "TOPLEFT", BigFootBar111110110001110000011111100000:GetName(),
            "BOTTOM", 3, -6)
        local BigFootBar1010001100000111001101011000000101 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 4, "TOP",
                BigFootBar101001111111110111001100101:GetName(), "BOTTOMRIGHT", 3, -6)
    elseif (BigFootBar1010011000101000111101110111011 == 5) then
        local BigFootBar111110110001110000011111100000 = getglobal(
            BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" .. 1)
        local BigFootBar101001111111110111001100101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 2, "TOPRIGHT", BigFootBar111110110001110000011111100000:GetName(),
            "BOTTOMLEFT", -3, -6)
        local BigFootBar000000110001001111100011 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 3, "TOP", BigFootBar111110110001110000011111100000:GetName(),
            "BOTTOM", 0, -6)
        local BigFootBar1010001100000111001101011000000101 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 4, "TOPLEFT",
                BigFootBar111110110001110000011111100000:GetName(), "BOTTOMRIGHT", 3, -6)
        local BigFootBar111100110010011111111010110010010001 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 5, "TOP",
                BigFootBar000000110001001111100011:GetName(), "BOTTOM", 0, -6)
    elseif (BigFootBar1010011000101000111101110111011 == 6) then
        local BigFootBar111110110001110000011111100000 = getglobal(
            BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" .. 1)
        local BigFootBar101001111111110111001100101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 2, "TOPRIGHT", BigFootBar111110110001110000011111100000:GetName(),
            "BOTTOM", -3, -6)
        local BigFootBar000000110001001111100011 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 3, "LEFT", BigFootBar101001111111110111001100101:GetName(), "RIGHT",
            6, 0)
        local BigFootBar1010001100000111001101011000000101 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 4, "TOPRIGHT",
                BigFootBar101001111111110111001100101:GetName(), "BOTTOM", -3, -6)
        local BigFootBar111100110010011111111010110010010001 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 5, "LEFT",
                BigFootBar1010001100000111001101011000000101:GetName(), "RIGHT", 6, 0)
        local BigFootBar1100001010110001111101111100 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 6, "LEFT", BigFootBar111100110010011111111010110010010001:GetName(),
            "RIGHT", 6, 0)
    elseif (BigFootBar1010011000101000111101110111011 == 7) then
        local BigFootBar111110110001110000011111100000 = getglobal(
            BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" .. 1)
        local BigFootBar101001111111110111001100101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 2, "LEFT", BigFootBar111110110001110000011111100000:GetName(),
            "RIGHT", 6, 0)
        local BigFootBar000000110001001111100011 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 3, "TOPRIGHT", BigFootBar111110110001110000011111100000:GetName(),
            "BOTTOM", -3, -6)
        local BigFootBar1010001100000111001101011000000101 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 4, "LEFT",
                BigFootBar000000110001001111100011:GetName(), "RIGHT", 6, 0)
        local BigFootBar111100110010011111111010110010010001 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 5, "LEFT",
                BigFootBar1010001100000111001101011000000101:GetName(), "RIGHT", 6, 0)
        local BigFootBar1100001010110001111101111100 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 6, "TOPLEFT", BigFootBar000000110001001111100011:GetName(),
            "BOTTOM", 3, -6)
        local BigFootBar1111000100100111010000111100100001010 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 7, "LEFT",
                BigFootBar1100001010110001111101111100:GetName(), "RIGHT", 6, 0)
    elseif (BigFootBar1010011000101000111101110111011 == 8) then
        local BigFootBar111110110001110000011111100000 = getglobal(
            BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" .. 1)
        local BigFootBar101001111111110111001100101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 2, "TOPRIGHT", BigFootBar111110110001110000011111100000:GetName(),
            "BOTTOM", -3, -6)
        local BigFootBar000000110001001111100011 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 3, "LEFT", BigFootBar101001111111110111001100101:GetName(), "RIGHT",
            6, 0)
        local BigFootBar1010001100000111001101011000000101 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 4, "TOPRIGHT",
                BigFootBar101001111111110111001100101:GetName(), "BOTTOM", -3, -6)
        local BigFootBar111100110010011111111010110010010001 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 5, "LEFT",
                BigFootBar1010001100000111001101011000000101:GetName(), "RIGHT", 6, 0)
        local BigFootBar1100001010110001111101111100 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 6, "LEFT", BigFootBar111100110010011111111010110010010001:GetName(),
            "RIGHT", 6, 0)
        local BigFootBar1111000100100111010000111100100001010 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 7, "TOPLEFT",
                BigFootBar1010001100000111001101011000000101:GetName(), "BOTTOM", 3, -6)
        local BigFootBar101000000001101110110011001100010111010 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 8, "LEFT",
                BigFootBar1111000100100111010000111100100001010:GetName(), "RIGHT", 6, 0)
    elseif (BigFootBar1010011000101000111101110111011 == 9) then
        local BigFootBar111110110001110000011111100000 = getglobal(
            BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" .. 1)
        local BigFootBar101001111111110111001100101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 2, "LEFT", BigFootBar111110110001110000011111100000:GetName(),
            "RIGHT", 6, 0)
        local BigFootBar000000110001001111100011 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 3, "LEFT", BigFootBar101001111111110111001100101:GetName(), "RIGHT",
            6, 0)
        local BigFootBar1010001100000111001101011000000101 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 4, "TOP",
                BigFootBar111110110001110000011111100000:GetName(), "BOTTOM", 0, -6)
        local BigFootBar111100110010011111111010110010010001 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 5, "LEFT",
                BigFootBar1010001100000111001101011000000101:GetName(), "RIGHT", 6, 0)
        local BigFootBar1100001010110001111101111100 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 6, "LEFT", BigFootBar111100110010011111111010110010010001:GetName(),
            "RIGHT", 6, 0)
        local BigFootBar1111000100100111010000111100100001010 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 7, "TOP",
                BigFootBar1010001100000111001101011000000101:GetName(), "BOTTOM", 0, -6)
        local BigFootBar101000000001101110110011001100010111010 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 8, "LEFT",
                BigFootBar1111000100100111010000111100100001010:GetName(), "RIGHT", 6, 0)
        local BigFootBar111111110010110101101000101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 9, "LEFT",
            BigFootBar101000000001101110110011001100010111010:GetName(), "RIGHT", 6, 0)
    elseif (BigFootBar1010011000101000111101110111011 == 10) then
        local BigFootBar111110110001110000011111100000 = getglobal(
            BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" .. 1)
        local BigFootBar101001111111110111001100101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 2, "LEFT", BigFootBar111110110001110000011111100000:GetName(),
            "RIGHT", 6, 0)
        local BigFootBar000000110001001111100011 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 3, "LEFT", BigFootBar101001111111110111001100101:GetName(), "RIGHT",
            6, 0)
        local BigFootBar1010001100000111001101011000000101 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 4, "TOPRIGHT",
                BigFootBar111110110001110000011111100000:GetName(), "BOTTOM", -3, -6)
        local BigFootBar111100110010011111111010110010010001 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 5, "LEFT",
                BigFootBar1010001100000111001101011000000101:GetName(), "RIGHT", 6, 0)
        local BigFootBar1100001010110001111101111100 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 6, "LEFT", BigFootBar111100110010011111111010110010010001:GetName(),
            "RIGHT", 6, 0)
        local BigFootBar1111000100100111010000111100100001010 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 7, "LEFT",
                BigFootBar1100001010110001111101111100:GetName(), "RIGHT", 6, 0)
        local BigFootBar101000000001101110110011001100010111010 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 8, "TOPLEFT",
                BigFootBar1010001100000111001101011000000101:GetName(), "BOTTOM", 3, -6)
        local BigFootBar111111110010110101101000101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 9, "LEFT",
            BigFootBar101000000001101110110011001100010111010:GetName(), "RIGHT", 6, 0)
        local BigFootBar11100101010100101110011111 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 10, "LEFT", BigFootBar111111110010110101101000101:GetName(),
            "RIGHT", 6, 0)
    elseif (BigFootBar1010011000101000111101110111011 == 11) then
        local BigFootBar111110110001110000011111100000 = getglobal(
            BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" .. 1)
        local BigFootBar101001111111110111001100101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 2, "LEFT", BigFootBar111110110001110000011111100000:GetName(),
            "RIGHT", 6, 0)
        local BigFootBar000000110001001111100011 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 3, "LEFT", BigFootBar101001111111110111001100101:GetName(), "RIGHT",
            6, 0)
        local BigFootBar1010001100000111001101011000000101 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 4, "TOP",
                BigFootBar101001111111110111001100101:GetName(), "BOTTOM", 0, -6)
        local BigFootBar1100001010110001111101111100 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 6, "TOP", BigFootBar1010001100000111001101011000000101:GetName(),
            "BOTTOM", 0, -6)
        local BigFootBar111100110010011111111010110010010001 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 5, "RIGHT",
                BigFootBar1100001010110001111101111100:GetName(), "LEFT", -6, 0)
        local BigFootBar1111000100100111010000111100100001010 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 7, "LEFT",
                BigFootBar1100001010110001111101111100:GetName(), "RIGHT", 6, 0)
        local BigFootBar101000000001101110110011001100010111010 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 8, "TOP",
                BigFootBar1100001010110001111101111100:GetName(), "BOTTOM", 0, -6)
        local BigFootBar11100101010100101110011111 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 10, "TOP",
            BigFootBar101000000001101110110011001100010111010:GetName(), "BOTTOM", 0, -6)
        local BigFootBar111111110010110101101000101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 9, "RIGHT", BigFootBar11100101010100101110011111:GetName(), "LEFT",
            -6, 0)
        local BigFootBar011111010101000000010010 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 11, "LEFT", BigFootBar11100101010100101110011111:GetName(), "RIGHT",
            6, 0)
    elseif (BigFootBar1010011000101000111101110111011 == 12) then
        local BigFootBar111110110001110000011111100000 = getglobal(
            BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" .. 1)
        local BigFootBar101001111111110111001100101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 2, "LEFT", BigFootBar111110110001110000011111100000:GetName(),
            "RIGHT", 6, 0)
        local BigFootBar000000110001001111100011 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 3, "LEFT", BigFootBar101001111111110111001100101:GetName(), "RIGHT",
            6, 0)
        local BigFootBar1010001100000111001101011000000101 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 4, "TOP",
                BigFootBar111110110001110000011111100000:GetName(), "BOTTOM", 0, -6)
        local BigFootBar111100110010011111111010110010010001 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 5, "LEFT",
                BigFootBar1010001100000111001101011000000101:GetName(), "RIGHT", 6, 0)
        local BigFootBar1100001010110001111101111100 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 6, "LEFT", BigFootBar111100110010011111111010110010010001:GetName(),
            "RIGHT", 6, 0)
        local BigFootBar1111000100100111010000111100100001010 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 7, "TOP",
                BigFootBar1010001100000111001101011000000101:GetName(), "BOTTOM", 0, -6)
        local BigFootBar101000000001101110110011001100010111010 =
            BigFootBar1111100111011011001111000100(BigFootBar0110100000011011100011000100, 8, "LEFT",
                BigFootBar1111000100100111010000111100100001010:GetName(), "RIGHT", 6, 0)
        local BigFootBar111111110010110101101000101 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 9, "LEFT",
            BigFootBar101000000001101110110011001100010111010:GetName(), "RIGHT", 6, 0)
        local BigFootBar11100101010100101110011111 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 10, "TOP",
            BigFootBar1111000100100111010000111100100001010:GetName(), "BOTTOM", 0, -6)
        local BigFootBar011111010101000000010010 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 11, "LEFT", BigFootBar11100101010100101110011111:GetName(), "RIGHT",
            6, 0)
        local BigFootBar01111001111111011111110111011111 = BigFootBar1111100111011011001111000100(
            BigFootBar0110100000011011100011000100, 12, "LEFT", BigFootBar011111010101000000010010:GetName(), "RIGHT",
            6, 0)
    end
end
function BigFootBar000011011110000100111110111111111()
    local BigFootBar111000110010011101100011101100 = BigFootBar01100001111001001011110001101010()
    BigFootBar01100100011100010001110(BigFootBar111000110010011101100011101100, "horizontal")
end
function BigFootBar01000111100101100000011101111100010101()
    local BigFootBar111000110010011101100011101100 = BigFootBar01100001111001001011110001101010()
    BigFootBar01100100011100010001110(BigFootBar111000110010011101100011101100, "vertical")
end
function BigFootBar10001101010001101001011100010001()
    local BigFootBar111000110010011101100011101100 = BigFootBar01100001111001001011110001101010()
    BigFootBar01100100011100010001110(BigFootBar111000110010011101100011101100, "funny")
end
function BigFootBar00110010101101100011101010010010000()
    BigFootBar001001010100001111100000 = 1
    local BigFootBar111000110010011101100011101100 = BigFootBar01100001111001001011110001101010()
    for BigFootBar000010111101101110000100110001010010 = 1, BigFootBar01101000000010011101001011000110, 1 do
        local BigFootBar11100010101111101100001 = getglobal(BigFootBar111000110010011101100011101100:GetName() ..
                                                                "ActionButton" ..
                                                                BigFootBar000010111101101110000100110001010010)
        BigFootBar11100010101111101100001.showgrid = BigFootBar11100010101111101100001.showgrid + 1
        BigFootBar01111010001111011111000(BigFootBar11100010101111101100001)
    end
end
function BigFootBar0111111010000010101001001101011000100()
    BigFootBar001001010100001111100000 = nil
    local BigFootBar111000110010011101100011101100 = BigFootBar01100001111001001011110001101010()
    for BigFootBar000010111101101110000100110001010010 = 1, BigFootBar01101000000010011101001011000110, 1 do
        local BigFootBar11100010101111101100001 = getglobal(BigFootBar111000110010011101100011101100:GetName() ..
                                                                "ActionButton" ..
                                                                BigFootBar000010111101101110000100110001010010)
        BigFootBar11100010101111101100001.showgrid = BigFootBar11100010101111101100001.showgrid - 1
        BigFootBar0111110001000100100111100100110101110(BigFootBar11100010101111101100001)
    end
end
function BigFootBar000100010001011010110110101(BigFootBar0110100000011011100011000100)
    local BigFootBar111000110010011101100011101100
    if (not BigFootBar0110100000011011100011000100) then
        BigFootBar111000110010011101100011101100 = BigFootBar01100001111001001011110001101010()
    else
        BigFootBar111000110010011101100011101100 = BigFootBar0110100000011011100011000100
    end
    for BigFootBar000010111101101110000100110001010010 = 1, BigFootBar01101000000010011101001011000110, 1 do
        local BigFootBar11100010101111101100001 = getglobal(BigFootBar111000110010011101100011101100:GetName() ..
                                                                "ActionButton" ..
                                                                BigFootBar000010111101101110000100110001010010)
        if (BigFootBar11100010101111101100001 and BigFootBar11100010101111101100001.hide) then
            return BigFootBar000010111101101110000100110001010010 - 1
        end
    end
    return BigFootBar01101000000010011101001011000110
end
function BigFootBar1010000001000110111101010111110()
    local BigFootBar1010011000101000111101110111011 = 0
    for BigFootBar000010111101101110000100110001010010 = 1, BigFootBar0011101101110011011010011011000, 1 do
        local BigFootBar0110100000011011100011000100 = getglobal("BigFootBarFrame" ..
                                                                     BigFootBar000010111101101110000100110001010010)
        if (BigFootBar0110100000011011100011000100 and BigFootBar0110100000011011100011000100:IsVisible()) then
            BigFootBar1010011000101000111101110111011 = BigFootBar1010011000101000111101110111011 + 1
        end
    end
    return BigFootBar1010011000101000111101110111011
end
function BigFootBar10000110000101001000111(BigFootBar11100010101111101100001)
    local BigFootBar1001010111011110011101101101111111010 = BigFootBar01000100000111001111011000010()
    local BigFootBar0010110010011101010000001010010001
    if (BigFootBar11100010101111101100001 and BigFootBar11100010101111101100001:GetName() and
        BigFootBar1001010111011110011101101101111111010[BigFootBar11100010101111101100001:GetName()]) then
        BigFootBar0010110010011101010000001010010001 = BigFootBar11111111110000111011110101(
            BigFootBar1001010111011110011101101101111111010[BigFootBar11100010101111101100001:GetName()].id)
    else
        BigFootBar0010110010011101010000001010010001 = BigFootBar11111111110000111011110101()
    end
    if (BigFootBar0010110010011101010000001010010001) then
        BigFootBar11100010101111101100001:SetID(BigFootBar0010110010011101010000001010010001)
    else
        return false
    end
    BigFootBar01000011000101111000111001010(BigFootBar11100010101111101100001,
        BigFootBar0010110010011101010000001010010001)
    BigFootBar11100010101111101100001.hide = nil
    BigFootBar11100010101111101100001:Show()
    BigFootBar11100010101111101100001:SetScript("OnEvent", function()
        BigFootActionButton_OnEvent(event)
    end)
    BigFootActionButton_Update(BigFootBar11100010101111101100001)
    return true
end
function BigFootBar10101110111101111110100110(BigFootBar11100010101111101100001)
    BigFootBar1001110010001111101101001010101011110(BigFootBar11100010101111101100001)
    local BigFootBar0010110010011101010000001010010001 = BigFootBar11100010101111101100001:GetID()
    if (BigFootBar0010110010011101010000001010010001 > 0) then
        BigFootBar10100000110110010111011110100010001010(BigFootBar0010110010011101010000001010010001)
        BigFootBar11100010101111101100001:SetID(0)
    end
    BigFootBar11100010101111101100001.hide = 1
    BigFootBar11100010101111101100001:Hide()
    BigFootBar11100010101111101100001:SetScript("OnEvent", BigFootBar0100001001111100011001011)
end
function BigFootBar01111010100110000011111010(BigFootBar0110100000011011100011000100)
    BigFootBar0110100000011011100011000100:ClearAllPoints()
    BigFootBar0110100000011011100011000100:SetPoint("CENTER", "UIParent", "CENTER", 0, 60)
end
function BigFootBar00000101110011001100011010100000()
    for BigFootBar000010111101101110000100110001010010 = 1, BigFootBar0011101101110011011010011011000, 1 do
        local BigFootBar0110100000011011100011000100 = getglobal("BigFootBarFrame" ..
                                                                     BigFootBar000010111101101110000100110001010010)
        if (BigFootBar0110100000011011100011000100 and BigFootBar0110100000011011100011000100:IsVisible()) then
            BigFootBar01111010100110000011111010(BigFootBar0110100000011011100011000100)
        end
    end
end
function BigFootBar0100001001111100011001011()
end
function BigFootBar1100001110000100101111010011110110010(BigFootBar000111011111000100011000101101000110)
    local BigFootBar0110100000011011100011000100 = CreateFrame("Frame", BigFootBar000111011111000100011000101101000110,
        UIParent, "BigFootBarFrameTemplate")
    BigFootBar01111010100110000011111010(BigFootBar0110100000011011100011000100)
    return BigFootBar0110100000011011100011000100
end
function BigFootBar01000100101000100111110101001100100010(BigFootBar0110100000011011100011000100)
    local BigFootBar000010111101101110000100110001010010
    BigFootBar0110100000011011100011000100:Hide()
    for BigFootBar000010111101101110000100110001010010 = 1, BigFootBar01101000000010011101001011000110, 1 do
        local BigFootBar11100010101111101100001 = getglobal(BigFootBar0110100000011011100011000100:GetName() ..
                                                                "ActionButton" ..
                                                                BigFootBar000010111101101110000100110001010010)
        BigFootBar10101110111101111110100110(BigFootBar11100010101111101100001)
    end
end
function BigFootBar100100110011110001011001110001000101(BigFootBar000111011111000100011000101101000110)
    local BigFootBar10011110100110101001011100101011110 = BigFootBar1010000001000110111101010111110()
    if (BigFootBar10011110100110101001011100101011110 > BigFootBar0011101101110011011010011011000) then
        return
    end
    local BigFootBar000010111101101110000100110001010010
    local BigFootBar0110100000011011100011000100
    if (BigFootBar000111011111000100011000101101000110) then
        local BigFootBar00010111000011100111000010010, BigFootBar011011001010010000001100110000000011,
            BigFootBar0010110010011101010000001010010001 = string.find(BigFootBar000111011111000100011000101101000110,
            "^BigFootBarFrame(%d+)$")
        BigFootBar0110100000011011100011000100 = getglobal(BigFootBar000111011111000100011000101101000110)
        if (BigFootBar0110100000011011100011000100 and BigFootBar00010111000011100111000010010) then
            if (not BigFootBar0110100000011011100011000100:IsVisible()) then
                local BigFootBar1011001100110110010111101101111110110
                for BigFootBar1011001100110110010111101101111110110 = 1, BigFootBar01101000000010011101001011000110, 1 do
                    local BigFootBar11100010101111101100001 = getglobal(
                        BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" ..
                            BigFootBar1011001100110110010111101101111110110)
                    BigFootBar11100010101111101100001:SetScript("OnEvent",
                        BigFootActionButtonTemplate:GetScript("OnEvent"))
                end
            end
            BigFootBar0110100000011011100011000100:Show()
            return BigFootBar0110100000011011100011000100
        else
            BigFootBar0110100000011011100011000100 = BigFootBar1100001110000100101111010011110110010(
                BigFootBar000111011111000100011000101101000110)
            BigFootBar0110100000011011100011000100:SetID(BigFootBar0010110010011101010000001010010001)
            BigFootBar0110100000011011100011000100:Show()
            return BigFootBar0110100000011011100011000100
        end
    end
    for BigFootBar000010111101101110000100110001010010 = 1, BigFootBar0011101101110011011010011011000, 1 do
        BigFootBar0110100000011011100011000100 = getglobal("BigFootBarFrame" ..
                                                               BigFootBar000010111101101110000100110001010010)
        if (BigFootBar0110100000011011100011000100 and not BigFootBar0110100000011011100011000100:IsVisible()) then
            local BigFootBar1011001100110110010111101101111110110
            for BigFootBar1011001100110110010111101101111110110 = 1, BigFootBar01101000000010011101001011000110, 1 do
                local BigFootBar11100010101111101100001 = getglobal(
                    BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" ..
                        BigFootBar1011001100110110010111101101111110110)
                BigFootBar11100010101111101100001:SetScript("OnEvent", function()
                    BigFootActionButton_OnEvent(event)
                end)
            end
            BigFootBar0110100000011011100011000100:Show()
            return BigFootBar0110100000011011100011000100
        end
    end
    for BigFootBar000010111101101110000100110001010010 = 1, BigFootBar0011101101110011011010011011000, 1 do
        BigFootBar0110100000011011100011000100 = getglobal("BigFootBarFrame" ..
                                                               BigFootBar000010111101101110000100110001010010)
        if (not BigFootBar0110100000011011100011000100) then
            BigFootBar0110100000011011100011000100 = BigFootBar1100001110000100101111010011110110010(
                "BigFootBarFrame" .. BigFootBar000010111101101110000100110001010010)
            BigFootBar0110100000011011100011000100:SetID(BigFootBar000010111101101110000100110001010010)
            BigFootBar0110100000011011100011000100:Show()
            return BigFootBar0110100000011011100011000100
        end
    end
end
function BigFootBar111000011011100101101001101()
    local BigFootBar0110100000011011100011000100 = BigFootBar100100110011110001011001110001000101()
    local BigFootBar010111100000001011100101001010100
    if (BigFootBar0110100000011011100011000100) then
        BigFootBar0110100000011011100011000100.isLocked = nil
        BigFootBar0110100000011011100011000100.minimized = nil
        for BigFootBar000010111101101110000100110001010010 = 1, BigFootBar01100100111101100011000001000, 1 do
            local BigFootBar11100010101111101100001 = getglobal(
                BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" ..
                    BigFootBar000010111101101110000100110001010010)
            if (BigFootBar10000110000101001000111(BigFootBar11100010101111101100001)) then
                BigFootBar010111100000001011100101001010100 = true
            end
        end
        for BigFootBar000010111101101110000100110001010010 = BigFootBar01100100111101100011000001000 + 1, BigFootBar01101000000010011101001011000110, 1 do
            local BigFootBar11100010101111101100001 = getglobal(
                BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" ..
                    BigFootBar000010111101101110000100110001010010)
            BigFootBar10101110111101111110100110(BigFootBar11100010101111101100001)
        end
        BigFootBar01100100011100010001110(BigFootBar0110100000011011100011000100, "vertical")
        BigFootBar011110011011111101011010(BigFootBar0110100000011011100011000100)
        if (not BigFootBar010111100000001011100101001010100) then
            BigFootBar00111001110001111101111101101000(BigFootBar0110100000011011100011000100)
        end
    end
end
function BigFootBar00111001110001111101111101101000(BigFootBar0110100000011011100011000100)
    local BigFootBar111000110010011101100011101100
    if (BigFootBar0110100000011011100011000100) then
        BigFootBar111000110010011101100011101100 = BigFootBar0110100000011011100011000100
    else
        BigFootBar111000110010011101100011101100 = BigFootBar01100001111001001011110001101010()
    end
    BigFootBar01000100101000100111110101001100100010(BigFootBar111000110010011101100011101100)
    BigFootBar011110011011111101011010(BigFootBar111000110010011101100011101100)
end
function BigFootBar11111111110000111011110101(BigFootBar0010110010011101010000001010010001)
    if (BigFootBar0010110010011101010000001010010001) then
        if (BigFootBar1100101110011000000111010101110011[tonumber(BigFootBar0010110010011101010000001010010001)]) then
            local BigFootBar11100010101111101100001 = BigFootBar1100101110011000000111010101110011[tonumber(
                BigFootBar0010110010011101010000001010010001)]
            BigFootBar1100101110011000000111010101110011[tonumber(BigFootBar0010110010011101010000001010010001)] = nil
            return BigFootBar0010110010011101010000001010010001
        end
    else
        local BigFootBar000010111101101110000100110001010010
        for BigFootBar000010111101101110000100110001010010 = 120, 1, -1 do
            if (BigFootBar1100101110011000000111010101110011[BigFootBar000010111101101110000100110001010010]) then
                local BigFootBar11100010101111101100001 =
                    BigFootBar1100101110011000000111010101110011[BigFootBar000010111101101110000100110001010010]
                BigFootBar1100101110011000000111010101110011[BigFootBar000010111101101110000100110001010010] = nil
                return BigFootBar000010111101101110000100110001010010
            end
        end
    end
end
function BigFootBar10100000110110010111011110100010001010(BigFootBar0010110010011101010000001010010001)
    if (not BigFootBar1100101110011000000111010101110011) then
        BigFootBar1100101110011000000111010101110011 = {}
    end
    BigFootBar1100101110011000000111010101110011[tonumber(BigFootBar0010110010011101010000001010010001)] = true
end
function BigFootBar00110111111010111110000()
    for __index, BigFootBar0111000110100111111000000001100 in BigFootBar1100101110011000000111010101110011 do
        return 1
    end
    return nil
end
function BigFootBar0111000100101100111111101011010111101()
    if (UnitClass("player") ~= BF_CLASS_WARRIOR and UnitClass("player") ~= BF_CLASS_DRUID and UnitClass("player") ~=
        BF_CLASS_ROGUE) then
        BigFootBar10100000110110010111011110100010001010(73)
        BigFootBar10100000110110010111011110100010001010(74)
        BigFootBar10100000110110010111011110100010001010(75)
        BigFootBar10100000110110010111011110100010001010(76)
        BigFootBar10100000110110010111011110100010001010(77)
        BigFootBar10100000110110010111011110100010001010(78)
        BigFootBar10100000110110010111011110100010001010(79)
        BigFootBar10100000110110010111011110100010001010(80)
        BigFootBar10100000110110010111011110100010001010(81)
        BigFootBar10100000110110010111011110100010001010(82)
        BigFootBar10100000110110010111011110100010001010(83)
        BigFootBar10100000110110010111011110100010001010(84)
    end
    if (UnitClass("player") ~= BF_CLASS_WARRIOR) then
        BigFootBar10100000110110010111011110100010001010(85)
        BigFootBar10100000110110010111011110100010001010(86)
        BigFootBar10100000110110010111011110100010001010(87)
        BigFootBar10100000110110010111011110100010001010(88)
        BigFootBar10100000110110010111011110100010001010(89)
        BigFootBar10100000110110010111011110100010001010(90)
        BigFootBar10100000110110010111011110100010001010(91)
        BigFootBar10100000110110010111011110100010001010(92)
        BigFootBar10100000110110010111011110100010001010(93)
        BigFootBar10100000110110010111011110100010001010(94)
        BigFootBar10100000110110010111011110100010001010(95)
        BigFootBar10100000110110010111011110100010001010(96)
    end
    if (UnitClass("player") ~= BF_CLASS_WARRIOR and UnitClass("player") ~= BF_CLASS_DRUID) then
        BigFootBar10100000110110010111011110100010001010(97)
        BigFootBar10100000110110010111011110100010001010(98)
        BigFootBar10100000110110010111011110100010001010(99)
        BigFootBar10100000110110010111011110100010001010(100)
        BigFootBar10100000110110010111011110100010001010(101)
        BigFootBar10100000110110010111011110100010001010(102)
        BigFootBar10100000110110010111011110100010001010(103)
        BigFootBar10100000110110010111011110100010001010(104)
        BigFootBar10100000110110010111011110100010001010(105)
        BigFootBar10100000110110010111011110100010001010(106)
        BigFootBar10100000110110010111011110100010001010(107)
        BigFootBar10100000110110010111011110100010001010(108)
    end
    BigFootBar10100000110110010111011110100010001010(109)
    BigFootBar10100000110110010111011110100010001010(110)
    BigFootBar10100000110110010111011110100010001010(111)
    BigFootBar10100000110110010111011110100010001010(112)
    BigFootBar10100000110110010111011110100010001010(113)
    BigFootBar10100000110110010111011110100010001010(114)
    BigFootBar10100000110110010111011110100010001010(115)
    BigFootBar10100000110110010111011110100010001010(116)
    BigFootBar10100000110110010111011110100010001010(117)
    BigFootBar10100000110110010111011110100010001010(118)
    BigFootBar10100000110110010111011110100010001010(119)
    BigFootBar10100000110110010111011110100010001010(120)
    local __index
    for __index = 72, 1, -1 do
        BigFootBar10100000110110010111011110100010001010(__index)
    end
end
function BigFootBar01000100000111001111011000010()
    local BigFootBar111111001111110110110011110000010 = UnitName("Player")
    if (not BigFootBar111111001111110110110011110000010 or BigFootBar111111001111110110110011110000010 == UNKNOWNOBJECT or
        BigFootBar111111001111110110110011110000010 == UKNOWNBEING) then
        return nil
    end
    if (not BigFootBar_Info[BigFootBar111111001111110110110011110000010]) then
        BigFootBar_Info[BigFootBar111111001111110110110011110000010] = {}
    end
    return BigFootBar_Info[BigFootBar111111001111110110110011110000010]
end
function BigFootBar01000011000101111000111001010(BigFootBar11100010101111101100001,
    BigFootBar0010110010011101010000001010010001)
    local BigFootBar00000011000100001110100000000 = BigFootBar01000100000111001111011000010()
    if (BigFootBar11100010101111101100001 and BigFootBar00000011000100001110100000000) then
        if (not BigFootBar0010110010011101010000001010010001) then
            BigFootBar0010110010011101010000001010010001 = BigFootBar11100010101111101100001:GetID()
        end
        BigFootBar00000011000100001110100000000[BigFootBar11100010101111101100001:GetName()] = {}
        BigFootBar00000011000100001110100000000[BigFootBar11100010101111101100001:GetName()].id =
            BigFootBar0010110010011101010000001010010001
    end
end
function BigFootBar1001110010001111101101001010101011110(BigFootBar11100010101111101100001)
    local BigFootBar00000011000100001110100000000 = BigFootBar01000100000111001111011000010()
    if (BigFootBar11100010101111101100001 and BigFootBar00000011000100001110100000000) then
        BigFootBar00000011000100001110100000000[BigFootBar11100010101111101100001:GetName()] = nil
    end
end
function BigFootBar10111110011000111010110010100100100(BigFootBar0110100000011011100011000100)
    if (BigFootBar0110100000011011100011000100 and BigFootBar0110100000011011100011000100:IsVisible()) then
        local BigFootBar101111001011111001101000 = BigFootBar01000100000111001111011000010()
        local BigFootBar11101101001111011000110001000000101100 =
            BigFootBar101111001011111001101000[BigFootBar0110100000011011100011000100:GetName()]
        if (BigFootBar11101101001111011000110001000000101100 and BigFootBar11101101001111011000110001000000101100.region) then
            BigFootBar0110100000011011100011000100:SetPoint("TOPRIGHT", "UIParent", "BOTTOMLEFT",
                BigFootBar11101101001111011000110001000000101100.region.right,
                BigFootBar11101101001111011000110001000000101100.region.top)
            BigFootBar0110100000011011100011000100.arrangement =
                BigFootBar11101101001111011000110001000000101100.arrangement
            BigFootBar0110100000011011100011000100.isLocked = BigFootBar11101101001111011000110001000000101100.isLocked
            BigFootBar0110100000011011100011000100.minimized =
                BigFootBar11101101001111011000110001000000101100.minimized
            BigFootBar0110100000011011100011000100.scale = BigFootBar11101101001111011000110001000000101100.scale
            BigFootBar0110100000011011100011000100.togglePartyFrame =
                BigFootBar11101101001111011000110001000000101100.togglePartyFrame
            BigFootBar0110100000011011100011000100.toggleDurabilityFrame =
                BigFootBar11101101001111011000110001000000101100.toggleDurabilityFrame
            BigFootBar01100100011100010001110(BigFootBar0110100000011011100011000100,
                BigFootBar11101101001111011000110001000000101100.arrangement)
            if (BigFootBar0110100000011011100011000100.scale) then
                BigFootBar_BScale:SetScale(BigFootBar0110100000011011100011000100,
                    BigFootBar0110100000011011100011000100.scale);
            end
            if (BigFootBar0110100000011011100011000100.togglePartyFrame) then
                BigFootBar011110001111010010001100100(1)
            end
            if (BigFootBar0110100000011011100011000100.toggleDurabilityFrame) then
                BigFootBar100101001001101011000001(1)
            end
        end
    end
end
function BigFootBar10011000001111111110001100()
    local BigFootBar00000011000100001110100000000 = BigFootBar01000100000111001111011000010()
    if (not BigFootBar00000011000100001110100000000) then
        BigFoot_DelayCall(BigFootBar10011000001111111110001100, 2)
        return
    end
    local BigFootBar1100000001111101110011101010000 = nil
    local __index
    for __index = 1, BigFootBar0011101101110011011010011011000, 1 do
        BigFootBar000111011111000100011000101101000110 = "BigFootBarFrame" .. __index
        if (BigFootBar00000011000100001110100000000[BigFootBar000111011111000100011000101101000110]) then
            local BigFootBar0110100000011011100011000100 = getglobal(BigFootBar000111011111000100011000101101000110)
            if (not BigFootBar0110100000011011100011000100) then
                BigFootBar0110100000011011100011000100 = BigFootBar100100110011110001011001110001000101(
                    BigFootBar000111011111000100011000101101000110)
            end
            for BigFootBar0011111110111111001000000000 = 1, BigFootBar01101000000010011101001011000110, 1 do
                local BigFootBar11100010101111101100001 = getglobal(
                    BigFootBar0110100000011011100011000100:GetName() .. "ActionButton" ..
                        BigFootBar0011111110111111001000000000)
                local BigFootBar101100110000101010011110 = BigFootBar11100010101111101100001:GetName()
                if (BigFootBar00000011000100001110100000000[BigFootBar101100110000101010011110]) then
                    BigFootBar10000110000101001000111(BigFootBar11100010101111101100001)
                else
                    BigFootBar10101110111101111110100110(BigFootBar11100010101111101100001)
                end
            end
            BigFootBar10111110011000111010110010100100100(BigFootBar0110100000011011100011000100)
            if (BigFootBar0110100000011011100011000100.minimized) then
                BigFootBar1001000010111111010110000101000000111(BigFootBar0110100000011011100011000100)
            end
            BigFootBar1100000001111101110011101010000 = true
        end
    end
    if (not BigFootBar1100000001111101110011101010000) then
        BigFootBar111000011011100101101001101()
    end
end
function BigFootBar110101000100001101010110101010001111(BigFootBar10111101011010100000001111000,
    BigFootBar011101101000101111110110100011)
    if (BigFootBar10111101011010100000001111000 == "Error") then
        ChatFrame1:AddMessage(BigFootBar011101101000101111110110100011, 1.0, 0.0, 0.0)
    elseif (BigFootBar10111101011010100000001111000 == "Info") then
        ChatFrame1:AddMessage(BigFootBar011101101000101111110110100011, 1.0, 1.0, 0.0)
    end
end
function BigFootBar00001110111101101101111(BigFootBar0110100000011011100011000100)
    local BigFootBar00101000001000111110100 = {}
    BigFootBar00101000001000111110100.left = BigFootBar0110100000011011100011000100:GetLeft()
    BigFootBar00101000001000111110100.right = BigFootBar0110100000011011100011000100:GetRight()
    BigFootBar00101000001000111110100.top = BigFootBar0110100000011011100011000100:GetTop()
    BigFootBar00101000001000111110100.bottom = BigFootBar0110100000011011100011000100:GetBottom()
    if (not BigFootBar00101000001000111110100.left or not BigFootBar00101000001000111110100.right or
        not BigFootBar00101000001000111110100.top or not BigFootBar00101000001000111110100.bottom) then
        return nil
    end
    BigFootBar00101000001000111110100.left = math.floor(BigFootBar00101000001000111110100.left + 0.5)
    BigFootBar00101000001000111110100.right = math.floor(BigFootBar00101000001000111110100.right + 0.5)
    BigFootBar00101000001000111110100.top = math.floor(BigFootBar00101000001000111110100.top + 0.5)
    BigFootBar00101000001000111110100.bottom = math.floor(BigFootBar00101000001000111110100.bottom + 0.5)
    return BigFootBar00101000001000111110100
end
function BigFootBar011110011011111101011010(BigFootBar0110100000011011100011000100)
    local BigFootBar101111001011111001101000 = BigFootBar01000100000111001111011000010()
    if (BigFootBar0110100000011011100011000100 and BigFootBar101111001011111001101000) then
        if (BigFootBar0110100000011011100011000100:IsVisible()) then
            local BigFootBar11101101001111011000110001000000101100 = {}
            local BigFootBar00101000001000111110100 = BigFootBar00001110111101101101111(
                BigFootBar0110100000011011100011000100)
            BigFootBar11101101001111011000110001000000101100.region = BigFootBar00101000001000111110100
            BigFootBar11101101001111011000110001000000101100.arrangement =
                BigFootBar0110100000011011100011000100.arrangement
            BigFootBar11101101001111011000110001000000101100.isLocked = BigFootBar0110100000011011100011000100.isLocked
            BigFootBar11101101001111011000110001000000101100.minimized =
                BigFootBar0110100000011011100011000100.minimized
            BigFootBar11101101001111011000110001000000101100.scale = BigFootBar0110100000011011100011000100.scale
            BigFootBar11101101001111011000110001000000101100.togglePartyFrame =
                BigFootBar0110100000011011100011000100.togglePartyFrame
            BigFootBar11101101001111011000110001000000101100.toggleDurabilityFrame =
                BigFootBar0110100000011011100011000100.toggleDurabilityFrame
            BigFootBar101111001011111001101000[BigFootBar0110100000011011100011000100:GetName()] =
                BigFootBar11101101001111011000110001000000101100
        else
            BigFootBar101111001011111001101000[BigFootBar0110100000011011100011000100:GetName()] = nil
        end
    end
end

function BigFootBar000010011000111111101011010000010001111(BigFootBar0110100000011011100011000100)
    local BigFootBar111000110010011101100011101100
    if (not BigFootBar0110100000011011100011000100) then
        BigFootBar111000110010011101100011101100 = BigFootBar01100001111001001011110001101010()
    else
        BigFootBar111000110010011101100011101100 = BigFootBar0110100000011011100011000100
    end

    local BigFootBar0111110110011000010111010101 = BigFootBar111000110010011101100011101100.scale
    if (not BigFootBar0111110110011000010111010101) then
        BigFootBar0111110110011000010111010101 = 1
    end
    local BigFootBar10110000110101011000100 = getglobal(BigFootBar111000110010011101100011101100:GetName() .. "Tab")
    local BigFootBar0100100110110001110011011 = BigFootBar10110000110101011000100:GetTop() *
                                                    BigFootBar10110000110101011000100:GetEffectiveScale()
    local BigFootBar10011010010011100010101101010010100 = BigFootBar10110000110101011000100:GetLeft() *
                                                              BigFootBar10110000110101011000100:GetEffectiveScale()
    BigFootBarOpacitySlider_OnLeave()
    BigFootBarOpacitySlider.frame = nil;
    BigFootBarOpacitySlider:SetAlpha(1);
    BigFootBarOpacitySlider:ClearAllPoints()
    BigFootBarOpacitySlider:SetPoint("TOPLEFT", "UIParent", "BOTTOMLEFT",
        BigFootBar10011010010011100010101101010010100 - 20, BigFootBar0100100110110001110011011)
    BigFootBarOpacitySlider:Show()
    BigFootBarOpacitySlider:SetMinMaxValues(50, 150)
    BigFootBarOpacitySlider:SetValueStep(1)
    if (BigFootBar111000110010011101100011101100.scale) then
        BigFootBarOpacitySlider:SetValue(BigFootBar111000110010011101100011101100.scale * 100)
    else
        BigFootBarOpacitySlider:SetValue(100)
    end
    BigFootBarOpacitySlider.frame = BigFootBar111000110010011101100011101100
end

function BigFootBar1001000010111111010110000101000000111(BigFootBar0110100000011011100011000100)
    local BigFootBar111000110010011101100011101100
    if (not BigFootBar0110100000011011100011000100) then
        BigFootBar111000110010011101100011101100 = BigFootBar01100001111001001011110001101010()
    else
        BigFootBar111000110010011101100011101100 = BigFootBar0110100000011011100011000100
    end
    for BigFootBar000010111101101110000100110001010010 = 1, BigFootBar01101000000010011101001011000110, 1 do
        local BigFootBar11100010101111101100001 = getglobal(BigFootBar111000110010011101100011101100:GetName() ..
                                                                "ActionButton" ..
                                                                BigFootBar000010111101101110000100110001010010)
        if (BigFootBar11100010101111101100001) then
            BigFootBar11100010101111101100001.minimized = 1
            BigFootBar11100010101111101100001:Hide()
        end
    end
    BigFootBar111000110010011101100011101100.minimized = 1
    BigFootBar011110011011111101011010(BigFootBar111000110010011101100011101100)
end

function BigFootBar1110000001000010010101000101()
    local BigFootBar111000110010011101100011101100 = BigFootBar01100001111001001011110001101010()
    for BigFootBar000010111101101110000100110001010010 = 1, BigFootBar01101000000010011101001011000110, 1 do
        local BigFootBar11100010101111101100001 = getglobal(BigFootBar111000110010011101100011101100:GetName() ..
                                                                "ActionButton" ..
                                                                BigFootBar000010111101101110000100110001010010)
        if (BigFootBar11100010101111101100001 and not BigFootBar11100010101111101100001.hide) then
            BigFootBar11100010101111101100001.minimized = nil
            BigFootBar11100010101111101100001:Show()
        end
    end
    BigFootBar111000110010011101100011101100.minimized = nil
    BigFootBar011110011011111101011010(BigFootBar111000110010011101100011101100)
end

function BigFootBar01101101101011101001010001111100(BigFootBar0110100000011011100011000100)
    local BigFootBar100101110010011000110111000100000100 = BigFootBarOpacitySlider:GetTop()
    local BigFootBar110110110000111010000110 = BigFootBarOpacitySlider:GetLeft()
    local BigFootBar11110001000010111111100 = BigFootBar0110100000011011100011000100:GetTop() *
                                                  BigFootBar0110100000011011100011000100:GetEffectiveScale()
    local BigFootBar100001100011011001110111001110010101 = BigFootBar0110100000011011100011000100:GetLeft() *
                                                               BigFootBar0110100000011011100011000100:GetEffectiveScale()
    BigFootBarOpacitySlider:Show()
    BigFootBar0110100000011011100011000100:ClearAllPoints()
    BigFootBar0110100000011011100011000100:SetPoint("TOPLEFT", BigFootBarOpacitySlider, "TOPLEFT",
        BigFootBar100001100011011001110111001110010101 - BigFootBar110110110000111010000110,
        BigFootBar100101110010011000110111000100000100 - BigFootBar11110001000010111111100)
end
function BigFootBar10000111111111100100010001110011000(BigFootBar0110100000011011100011000100,
    BigFootBar0111110110011000010111010101)
    BigFootBar0110100000011011100011000100:SetScale(BigFootBar0111110110011000010111010101)
    BigFootBar0110100000011011100011000100.scale = BigFootBar0111110110011000010111010101
    BigFootBar011110011011111101011010(BigFootBar0110100000011011100011000100)
end
function BigFootBar100101001001101011000001(BigFootBar00110100100010001111001000001001110)
    if (BigFootBar00110100100010001111001000001001110) then
        DurabilityFrame:SetPoint("TOP", "MinimapCluster", "BOTTOM", -20, 15)
    else
        DurabilityFrame:SetPoint("TOP", "MinimapCluster", "BOTTOM", 40, 15)
    end
end
function BigFootBar011110001111010010001100100(BigFootBar00110100100010001111001000001001110)
    if (BigFootBar00110100100010001111001000001001110) then
        PartyMemberFrame1:SetPoint("TOPLEFT", "UIParent", "TOPLEFT", 40, -128)
    else
        PartyMemberFrame1:SetPoint("TOPLEFT", "UIParent", "TOPLEFT", 10, -128)
    end
end
function BigFootBar_OnMouseDown(BigFootBar11100010101111101100001)
    if (BigFootBar11100010101111101100001 ~= "LeftButton") then
        return
    end
    local BigFootBar001101101111001110110111101100100000 = this:GetParent()
    if (not BigFootBar001101101111001110110111101100100000.isLocked) then
        BigFootBar001101101111001110110111101100100000:StartMoving()
        BigFootBar001101101111001110110111101100100000.moving = true
        MOVING_BIGFOOTBAR = BigFootBar001101101111001110110111101100100000
    end
end
function BigFootBar_OnMouseUp(BigFootBar11100010101111101100001)
    local BigFootBar001101101111001110110111101100100000 = this:GetParent()
    if (BigFootBar001101101111001110110111101100100000.moving) then
        BigFootBar001101101111001110110111101100100000:StopMovingOrSizing()
        BigFootBar001101101111001110110111101100100000.moving = false
        MOVING_BIGFOOTBAR = nil
        BigFootBar011110011011111101011010(BigFootBar001101101111001110110111101100100000)
    end
end
function BigFootBarTab_OnEnter()
    this:GetParent().isFading = nil
    this:GetParent().locking = true
    GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT")
    GameTooltip:SetText(BIGFOOTBAR_TAB_HELP_TEXT)
    GameTooltip:Show()
end
function BigFootBarTab_OnLeave()
    local dropdown = getglobal(this:GetName() .. "DropDown")
    if (UIDropDownMenu_GetCurrentDropDown() ~= dropdown) then
        this:GetParent().locking = nil
    end
    this:GetParent().lastLeave = GetTime()
    GameTooltip:Hide()
end
function BigFootBar00100101011100111011010(BigFootBar10110000110101011000100)
    BigFootBar10110000110101011000100:GetParent().isFading = nil
end
function BigFootBar1101111100001011000100110110010(BigFootBar10110000110101011000100)
    BigFootBar10110000110101011000100:GetParent().isFading = nil
    BigFootBar10110000110101011000100:Hide()
end
function BigFootBarFrame_OnUpdate(BigFootBar1010111111001010001011010100101)
    if (not this.lastUpdate) then
        this.lastUpdate = 0
    end
    this.lastUpdate = this.lastUpdate + BigFootBar1010111111001010001011010100101
    if (this.lastUpdate > 0.2) then
        this.lastUpdate = 0
    else
        return
    end
    if (not this.autohide) then
        return
    end
    if (not this.isFading and not this.locking) then
        local BigFootBar10110000110101011000100 = getglobal(this:GetName() .. "Tab")
        if (this.lastEnter and
            (not BigFootBar10110000110101011000100:IsVisible() or BigFootBar10110000110101011000100:GetAlpha() == 0) and
            GetTime() - this.lastEnter > BigFootBar1100101100110101000111000000011011001) then
            this.isFading = true
            local BigFootBar1100000011010101100011101 = {}
            BigFootBar1100000011010101100011101.mode = "IN"
            BigFootBar1100000011010101100011101.startAlpha = 0
            BigFootBar1100000011010101100011101.endAlpha = 0.5
            BigFootBar1100000011010101100011101.timeToFade = BigFootBar1000011001010101110110110
            BigFootBar1100000011010101100011101.finishedFunc = BigFootBar00100101011100111011010
            BigFootBar1100000011010101100011101.finishedArg1 = BigFootBar10110000110101011000100
            BigFootBar10110000110101011000100:SetAlpha(0)
            BigFootBar10110000110101011000100:Show()
            UIFrameFade(BigFootBar10110000110101011000100, BigFootBar1100000011010101100011101)
        elseif (this.lastLeave and not this.minimized and BigFootBar10110000110101011000100:IsVisible() and GetTime() -
            this.lastLeave > BigFootBar1100101100110101000111000000011011001) then
            this.isFading = true
            local BigFootBar1100000011010101100011101 = {}
            BigFootBar1100000011010101100011101.mode = "OUT"
            BigFootBar1100000011010101100011101.startAlpha = 0.5
            BigFootBar1100000011010101100011101.endAlpha = 0
            BigFootBar1100000011010101100011101.timeToFade = BigFootBar1000011001010101110110110
            BigFootBar1100000011010101100011101.finishedFunc = BigFootBar1101111100001011000100110110010
            BigFootBar1100000011010101100011101.finishedArg1 = BigFootBar10110000110101011000100
            UIFrameFade(getglobal(this:GetName() .. "Tab"), BigFootBar1100000011010101100011101)
        end
    end
end

function BigFootBarOpacitySlider_OnValueChanged(value)
    getglobal(this:GetName() .. "Text"):SetText(math.floor(value) .. "%")
    if (this.frame) then
        BigFootBar10000111111111100100010001110011000(this.frame, value / 100)
    end
end

function BigFootBarOpacitySlider_OnEnter()
    BigFootBarOpacitySlider.Leave = nil;
end

function BigFootBarOpacitySlider_OnLeave()
    if (BigFootBarOpacitySlider.frame) then
        local BigFootBar0100100110110001110011011 = BigFootBarOpacitySlider.frame:GetTop()
        local BigFootBar10011010010011100010101101010010100 = BigFootBarOpacitySlider.frame:GetLeft()
        BigFootBarOpacitySlider.Leave = 1;
        BigFootBarOpacitySlider.frame:ClearAllPoints()
        BigFootBarOpacitySlider.frame:SetPoint("TOPLEFT", "UIParent", "BOTTOMLEFT",
            BigFootBar10011010010011100010101101010010100, BigFootBar0100100110110001110011011)
        BigFootBarOpacitySlider.frame = nil
        BigFootBarOpacitySlider:Hide()
    end
end
